import my_array
num = 8
array_ptr = my_array.alloc_array(num)
array = my_array.uint_array.frompointer(array_ptr)
for i in range(num):
    array[i] = i
my_array.revert(array_ptr, num)
for i in range(num):
    print array[i]
my_array.free_array(array)

num = 12
uint_array_inst = my_array.uint_array(num)
for i in range(num):
    uint_array_inst[i] = i
my_array.revert(uint_array_inst, num)
for i in range(num):
    print uint_array_inst[i]

